﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ExamText.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
        }
        a{
            font-size:12px;
            text-align:right;
        }
        #login{
            width:300px;
            padding:10px 50px;
            margin:50px auto;
            border-radius:5px;
            box-shadow:0px 4px 8px #a9a9,
                inset 0px 0px 4px #a9a9a9;
        }
    </style>
    <script>
        window.onload = function () {
            this.document.querySelector('.txt-pwd').type = 'password';
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="login">
            <table style="width: 300px; height: 243px;">
                <tr>
                    <td colspan="2" style="text-align: center; background-color: #33CCFF">
                        <asp:Label ID="Label1" runat="server" Text="登入界面"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <asp:Label ID="Label2" runat="server" Text="账户名："></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="180px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">&nbsp;</td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="账户名不能为空" Font-Size="12px" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">
                        <asp:Label ID="Label3" runat="server" Text="密码："></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox2" CssClass="txt-pwd" runat="server" Height="21px" Width="180px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1">&nbsp;</td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空" Font-Size="12px" ForeColor="Red" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="Button1" runat="server" BackColor="#009933" Font-Bold="True" ForeColor="White" Height="28px" Text="登  入" Width="122px" OnClick="Button1_Click" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style1" colspan="2" style="text-align:right">
                        <a href="Res.aspx" style="text-align: right">没有账号去注册
                        </a>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
